﻿@{
    ViewBag.Title = "QCode";
}
@section scripts
{
    <link href="@Url.Content("~/content/css/kingprt.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/content/css/font-awesome.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.PrintArea.js")" type="text/javascript"></script> 
    <script src="@Url.Content("~/Scripts/Base/print.js")" type="text/javascript"></script> 
}

<div style="width:100%;height:60px;background-color:#e3e3e3;font-size:16pt;text-align:center;vertical-align:middle;padding-top:35px;">
    扫描二维码进入此店微商城</div>
<div style="width:100%;height:40px;background-color:#f3f3f3;text-align:center;vertical-align:middle;padding-top:10px;">
    <input type="button" class="btnPrint" style="font-size:16pt;height:30px;" value="打印二维码"/>
</div>
<div style="position:absolute;top:170px;left:150px;" class="A4_verPrint">
<iframe id="FM" name="FM" src=""  frameborder=0 width=200 height=200 marginheight=0 marginwidth=0 scrolling=no ></iframe>
</div>

<script>
    function SetData(data) {
        $("#FM").attr("src", "GetQCode?mSystemAppID=" + data);
        document.frames('FM').location.reload()
    }

    $(function () {
        $(".btnPrint").click(function () {
            $(".A4_verPrint").printArea();
        });
    });
</script>